
public class Schleifen {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int summe = 0;
		for(int i = 1; i<=100; i++) {
			summe += (i*i);
		}
		System.out.println("Summe ist: "+summe);
		
		summe = 0;
		System.out.println();
		int k=1;
		while(k<=100){
			summe += k*k;
			k++;
		}
		System.out.println("Summe ist: "+summe);
	
	}
	

}
